<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<button type="button" class="btn btn-default" onclick="testAjax()">查询</button>
</body>
<script src="/js/jquery-3.3.1.min.js" ></script>
<script type="text/javascript">
function testAjax(){
	$.ajax({
		url:"/hello/test",
		type:"POST",
		contentType:"application/json",
		dataType:"json",
		cache:false,
		data:{
		    "schema": "2.0",
		    "header": {
		        "event_id": "5e3702a84e847582be8db7fb73283c02",
		        "event_type": "im.message.receive_v1",
		        "create_time": "1608725989000",
		        "token": "rvaYgkND1GOiu5MM0E1rncYC6PLtF7JV",
		        "app_id": "cli_9f5343c580712544",
		        "tenant_key": "2ca1d211f64f6438"
		    },
		    "event": {
		        "sender": {
		            "sender_id": {
		                "union_id": "on_8ed6aa67826108097d9ee143816345",
		                "user_id": "e33ggbyz",
		                "open_id": "ou_84aad35d084aa403a838cf73ee18467"
		            },
		            "sender_type": "user",
		            "tenant_key": "736588c9260f175e"
		        },
		        "message": {
		            "message_id": "om_5ce6d572455d361153b7cb51da133945",
		            "root_id": "om_5ce6d572455d361153b7cb5xxfsdfsdfdsf",
		            "parent_id": "om_5ce6d572455d361153b7cb5xxfsdfsdfdsf",
		            "create_time": "1609073151345",
		            "update_time": "1687343654666",
		            "chat_id": "oc_5ce6d572455d361153b7xx51da133945",
		            "thread_id": "omt_d4be107c616",
		            "chat_type": "group",
		            "message_type": "text",
		            "content": "{\"text\":\"@_user_1 hello\"}",
		            "mentions": [
		                {
		                    "key": "@_user_1",
		                    "id": {
		                        "union_id": "on_8ed6aa67826108097d9ee143816345",
		                        "user_id": "e33ggbyz",
		                        "open_id": "ou_84aad35d084aa403a838cf73ee18467"
		                    },
		                    "name": "Tom",
		                    "tenant_key": "736588c9260f175e"
		                }
		            ],
		            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.53 Safari/537.36 Lark/6.7.5 LarkLocale/en_US ttnet SDK-Version/6.7.8"
		        }
		    }
		},
		success:function(data){
			console.log(data);
		},
		error : function(request, textStatus, errorThrown) {
			alert("异常，请联系管理员");
		}
	});
}
</script>
</html>